Welcome Guest. Please Login or Register  


You are here: Index > Advanced Electron Forums > Mods > Topic : [BBCode] DEWPLAYER


News:

Group Message
Hello Guest,

Welcome to the AEF Board. AEF is getting better and better and is also becoming more popular.
Take a few seconds to Register, its free, and it inspires us to work harder and improve on whatever we can improve on.
Give us some feedback, and tell your buddies about AEF!

Thanks,
The AEF Team



Threaded Mode | Print  

 [BBCode] DEWPLAYER, Flash Mp3 Player (1 Replies, Read 154 times)
D-Sharp
Group: Member
Post Group: Newbie
Posts: 13
Status:
Okay this is the first time that I have made a modification to any code and posted it online for others to use, so please be patient if you could.

I apreciate all comments, suggestions and advice.

First credit goes to Dew from Alsacreations

First thing you will need to do is download my Repacked version of Dew Player wich has directory listing for AEF root and only necessary files

The Repacked archive can be found @mediafire.com   |  @fileden
Once downloaded,  upload the aefdewplayer folder to your forum root directory

Code Edits for DEWPLAYER Classic [Demo can be found HERE]

Open ./main/functions/bbc_functions.php and search/find the following piece of code (in my editor it is on lines 29-38

PHP Code

 //This function will take care to format the text only.
function normal_bbc($text){

global 
$globals;
    
    if(!
$globals['parsebbc']){
    
        return 
$text;
    
    } 




After
PHP Code

 


on a new line after add the following piece of code

PHP Code

 // DEWPLAYER CLASSIC BBcode Start
    
$text preg_replace("/[mp3c]([^"[<>]+?)[/mp3c]/Usi", 
"
<object type="application/x-shockwave-flash" data="aefdewplayer/dewplayer.swf" width="200" height="20" id="dewplayer" name="dewplayer">
<
param name="movie" value="aefdewplayer/dewplayer.swf" />
<
param name="flashvars" value="mp3=$1" />
<
param name="wmode" value="transparent" />
</
object>", $text); 
// DEWPLAYER CLASSIC BBcode END 




To Post a mp3 in this player to a post all you have to do after the above code edits is (without *'s)
Code

[mp3c*]http://yourhost.com/your.mp3[/mp3c*]


Code Edits for DEWPLAYER Bubble [DEMO can be found HERE]

Open ./main/functions/bbc_functions.php and search/find the following piece of code (in my editor it is on lines 29-38

PHP Code

 //This function will take care to format the text only.
function normal_bbc($text){

global 
$globals;
    
    if(!
$globals['parsebbc']){
    
        return 
$text;
    
    } 




After
PHP Code

 


on a new line after add the following piece of code

PHP Code

 // DEWPLAYER BUBBLE BBcode Start       
 
$text preg_replace("/[mp3b]([^"[<>]+?)[/mp3b]/Usi", 
"
<object type="application/x-shockwave-flash" data="aefdewplayer/dewplayer-bubble.swf" width="250" height="65" id="dewplayer" name="dewplayer">
<
param name="movie" value="aefdewplayer/dewplayer-bubble.swf" />
<
param name="flashvars" value="mp3=$1" />
<
param name="wmode" value="transparent" />
</
object>", $text); 
// DEWPLAYER BUBBLE BBcode END 




To Post a mp3 inthe bubble player to a post all you have to do after the above code edits is (without the *'s)

Code
[mp3b*]http://yourhost.com/your.mp3[/mp3b*]


I have included a short beat that i have made in the mp3 folder for you to test if it is all working smoothly
to test this just copy the following code into a post (with out the *'s and changing "http://your.url/youraefdirectory" to what ever yours may be)

Code
[mp3c*]http://your.url/youraefdirectory/aefdewplayer/mp3/dsharpbeattest.mp3[/mp3c*]


-----------------------
http://dsharpcode.co.cc/aef/
IP: --   

[BBCode] DEWPLAYER
D-Sharp
Group: Member
Post Group: Newbie
Posts: 13
Status:
to change the BBCode to whatever you want instead of [mp3c][/mp3c] and [mp3b][/mp3b]

change the following "bbcodeyouwant" to what you want (eg. [song][/song] [music][/music] in the first line on both codes added to bbc_functions.php but make

Code
    $text = preg_replace("/[bbcodeyouwant]([^"[<>]+?)[/bbcodeyouwant]/Usi",



It is 3:30am here and am tired, when i have time i will try to add BBCode Button and Playlist Player Support


-----------------------
http://dsharpcode.co.cc/aef/
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.

Rollup Banner Stands  cheap car insurance   


AEF web hosting


All times are GMT. The time now is March 12, 2010, 7:39 am.

  Powered By AEF 1.0.9 © 2007-2009 Electron Inc.Queries: 11  |  Page Created In:0.061